home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Taifun
/
Taifun 099 (1989-05-15)(Ossowski, Stefan)(DE)(PD).zip
/
Taifun 099 (1989-05-15)(Ossowski, Stefan)(DE)(PD).adf
/
PCQ
/
Examples
/
WhereFrom.p
< prev
Wrap
Text File
|
1989-03-31
|
371b
|
19 lines
Program WhereFrom;
{$I "include/dos.i"}
var
stdfile : FileHandle;
begin
{ Calling Input() will always give you the filehandle of standard
input, since that's where the startup code gets it from }
stdfile := Input();
if IsInteractive(stdfile) then
writeln('Input is coming from the console.')
else
writeln('Input is comming from a file.');
end.